package com.aabte.design.pattern.behavioral.visitor;

public class BossVisitor implements IVisitor {
    @Override
    public void visit(FreeCourse course) {
        System.out.println("Boss --> 免费课程：" + course.getName());
    }

    @Override
    public void visit(CodingCourse course) {
        System.out.println("Boss --> 实战课程：" + course.getName()+"， 价格：" + course.getPrice() + "， 销量：" + course.getSales());
    }
}
